package org.rc.dto;

import lombok.Data;
import org.rc.entity.Sxj;


@Data
public class SxjPageRes {
    private Long id;
    private String name;
    private String ip;
    private Integer port;
    private String userName;
    private String password;
    private String roomName;

    public static SxjPageRes getInstance(Sxj sxj){
        SxjPageRes sxjPageRes = new SxjPageRes();
        sxjPageRes.setId(sxj.getId());
        sxjPageRes.setName(sxj.getName());
        sxjPageRes.setIp(sxj.getIp());
        sxjPageRes.setPort(sxj.getPort());
        sxjPageRes.setUserName(sxj.getUserName());
        sxjPageRes.setPassword(sxj.getPassword());
        return sxjPageRes;
    }
}
